fb_lengthweigth <-
function(idFB = NA, Genus = NA, Species = NA, server = 'http://www.fishbase.tw/')
	{
require("XML")
require("stringr")
require('RCurl')
	if (is.na(idFB)) 
		{
		ids <- fb_ids(Genus=Genus, Species=Species, server = server)
		idFB <- ids$idFB
		}
  if ((is.na(idFB)) & (is.na(Genus) | is.na(Species)))
    {
    warning("idFB or Genus and Specie are required!")
    }
	if(!is.na(idFB))
		{
		url <- paste(server, "PopDyn/LWRelationshipList.php?ID=", idFB, sep = "")
		lw <- readHTMLTable(url, as.data.frame=TRUE) ## I got the file as a XML class
		if (is.null(lw[[3]]))
			{
			lwu <- c(as.character(idFB), as.character(Genus), as.character(Species), t(rep(NA, 9)))
			names(lwu) <-   c('idFB','Genus', 'Species',  'a', 'b', 'Doubful', 'sex', 'Length', 'L_type', 'N', 'Country', 'Locality')
			lwu <- t(lwu)
			}
		if (!is.null(lw[[3]]))
			{
			lwu <- cbind(as.character(idFB), as.character(Genus), as.character(Species), lw[[3]][-1,])
			names(lwu) <- c('idFB', 'Genus', 'Species', 'a', 'b', 'Doubful', 'sex', 'Length', 'L_type', 'N', 'Country', 'Locality')
			}
		}
	return(as.data.frame(lwu))
	}
